package com.lbj.mall.auth.entity.vo;

import lombok.Data;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Size;

@Data
public class UserRegisterVo {

    @NotEmpty(message = "用户名不能为空")
    @Size(min = 6, max = 18, message = "用户名必须为6-18个字符")
    private String username;

    @NotEmpty(message = "密码不能为空")
    @Size(min = 6, max = 18, message = "密码必须为6-18个字符")
    private String password;

    @NotEmpty(message = "邮箱不能为空")
    @Email(message = "邮箱格式不合法")
    private String email;

    @NotEmpty(message = "验证码不能为空")
    private String code;
}
